#include <stdio.h>
#include <math.h>
#define NUM 40
int GetAboveAver(int score[],float aver, int n);
int main()
{	  	    	 	
    int i=-1,a[NUM],n,count;
    float sum,aver;
    do
    {	  	    	 	
        i++;
        scanf("%d",&a[i]);
    }while(a[i]>=0);
    n=i;
    printf("Total number is %d\n",n);
    for(i=0;i<n;i++)
     {	  	    	 	
        sum=sum+a[i];
     }
     aver=sum/n;
    printf("Average score is %.2f\n",aver);
    count=GetAboveAver(a,aver,n);
    printf("%d students are above average score\n",count);

    return 0;

}	  	    	 	

int GetAboveAver(int score[], float aver,int n)
{	  	    	 	
     int i,count=0;

     for(i=0;i<n;i++)
     {	  	    	 	
         if(score[i]-aver>0)
         {	  	    	 	
             count++;
         }
     }
     return count;

}